﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DanhSachBaiViet.ascx.cs" Inherits="Webmau.Controls.DanhSachBaiViet" %>
<%@ Register src="Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<uc1:Pager ID="pagerTop" runat="server" Visible="false" />
<asp:DataList ID="dlBaiViet" runat="server">
    <ItemTemplate>
        <div class="danhsach list">
            <a href='<%# DataAccess.Link.ToDanhSachDiaDiem(Eval("MaBaiViet").ToString()) %>'>
                <img src='<%# DataAccess.Link.ToHinhBVk(Eval("Hinh").ToString()) %>'
                    alt='<%#HttpUtility.HtmlEncode(Eval("TenBaiViet").ToString()) %>' />
            </a>
            <div class="detail">
                <h3>
                    Bai Viet:  <a href='<%# DataAccess.Link.ToDanhSachDiaDiem(Eval("MaBaiViet").ToString()) %>'>
                       <%#HttpUtility.HtmlEncode(Eval("Ten").ToString())%>
                    </a>
                </h3>
                <p>
                   NoiDung:  <%#HttpUtility.HtmlEncode(Eval("NoiDung").ToString())%>
                </p>
                <p class="LoaiTin">
                    LoaiTin: <span>
                        <%#Eval("LoaiTin") + " ".ToString()%></span>
                </p>
                
                <p class="nguoidang">
                    Người đăng: <a href='<%# DataAccess.Link.ToTrangCaNhan(Eval("IDNguoiDung").ToString()) %>'>
                    <%#(Eval("IDNguoiDung").ToString()) %>
                    </a>
                </p>
                
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>
<uc1:Pager ID="pagerBottom" runat="server" Visible="false" />


